package com.ngc.mall.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.ngc.mall.common.configure.mybatisPlus.BaseDomain;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 *
 *  用户领取优惠券记录
 * @author: chenxiaolin
 * @date 2023/8/21 10:30
**/
@TableName("user_coupon")
@Builder
@Data
@NoArgsConstructor
@AllArgsConstructor
public class UserCouponDomain extends BaseDomain {
    /**
     * 状态 1 可使用 2.已使用 3.已过期
     */
    private Integer status;

    private Long userId;

    private Long couponId;

    private Long orderId;

    private LocalDateTime startDate;

    private LocalDateTime endDate;
}
